<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh,add,edit,del')}
						<a class="btn btn-info btn-imports dropdown-toggle {:$auth->check('resource/import')?'':'hide'}"><i class="fa fa-upload"></i> {:__('Import')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('resource/edit')}"
                           data-operate-del="{:$auth->check('resource/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="typetpl" type="text/html">
	<form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
		<div class="form-group">
			<div class="col-xs-12">
				<select name="industry" class="form-control">
					<option value="">{:__('请选择行业')}</option>
					{foreach name="industryList" id="item"}
					<option value="{$key}">{$item}</option>
					{/foreach}
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-xs-12">
				<select name="category" class="form-control">
					<option value="">{:__('请选择分类')}</option>
					{foreach name="categoryList" id="item"}
					<option value="{$key}">{$item}</option>
					{/foreach}
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-xs-12">
				<div class="input-group">
					<input type="text" name="file" id="c-local" class="form-control"/>
					<div class="input-group-addon no-border no-padding">
						<button type="button" id="faupload-local" class="btn btn-primary faupload" data-input-id="c-local" data-multiple="false" data-preview-id="p-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("上传")}</button>
					</div>
				</div>
				<ul class="row list-inline faupload-preview" id="p-local"></ul>
			</div>
			<div class="col-xs-12" style="margin-top:5px;text-align: right;">
				<a href="/resource.xlsx" >上传模板下载</a>
			</div>
		</div>
	</form>	
</script>